package com.cssl.service;

import com.cssl.domain.DtsAdmin;
import com.cssl.domain.DtsRole;
import com.cssl.domain.dto.DtsAdminDto;
import com.cssl.util.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DtsAdminService {
//    Result login(String name, String password, String code, HttpServletRequest request);
     Result login(String name, String password, String code);
     Result getCode(String key);
     DtsAdmin getAllInfoById(Integer id);
     Map getDtsAdminList(DtsAdminDto dto);
     int AdminUsernameCount( String username);
     int createAdmin(DtsAdmin admin);
     boolean changeAdminInfoById( DtsAdmin admin);
     int deleteAdmin (DtsAdmin admin);
     int updateRoleAdmin(DtsRole role);
}
